home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 3: The Continuation / 17-Bit_The_Continuation_Disc.iso / nz / nz 5 / integral & contour.doc < prev    next >
Text File  |  1994-01-27  |  3KB  |  74 lines

  1.     ~INTEGRAL`
  2.           This may interest some scientists or engineers who have to
  3.      do a precision evaluation of some definite integral function.
  4.  
  5.           Details are best found by reading the listing and the BYTE
  6.      reference. An exponential function is included as a demo, but
  7.      there is a description of where to put your own function
  8.      (watchit!) This is in unrefined working condition.
  9.  
  10.  
  11.  
  12.     ~CONTOUR`
  13.  
  14.           This  is a better version of an AmigaBASIC program for contour
  15.      plotting, from BYTE, Nov 1983. It's now been made largely MENU
  16.      driven which makes things easier. The usual way of using it would
  17.      probably be to just allow the program to pick default values in
  18.      first pass, and then use menu to refine the plot how you want it.
  19.  
  20.           The listing is included here as CONTOUR2, with two short files
  21.      Test, and Clim as examples. ~{included on the newsdisk -ed}`
  22.  
  23.           Amongst future possibilities is an option to capture contours
  24.      in a file so they can be 3-d rotated, and a built in PRINT routine.
  25.  
  26.  
  27.    Contour runs as an AmigaBasic program, and is started in the standard
  28. way for Basic programs. It then asks the name of the file you want contoured
  29. then it plots a first try at the contour. You can then use the mouse-driven
  30. menu to modify the plot how you want.
  31.  
  32. File: The file to be plotted can be anywhere, but if not on the same
  33.       subdirectory  as CONTOUR, must have enough pathname for BASIC to
  34.       find it.
  35.  
  36. The file is ASCII, & must be formatted as follows:-
  37.  
  38.                            column
  39.  
  40.          0     1    2    3    4    5   .....
  41.  
  42.          1
  43.          2          data
  44.   row    3
  45.          4
  46.          .
  47.          .
  48.             row 0/column 0 - contain the physical values of the data in
  49.                            the column/row.
  50.                   eg, y0-col may contain distances in N dirn
  51.                       x0-row may contain distances in E dirn
  52.                       the data might be heights above datum, at those coords
  53.  
  54.      The file would normally be made under ED, or fed in from a foriegn
  55. source, or however you like.
  56.  
  57.      Files to try with, called Test and Clim, are available on this disk.
  58. Test is short and means nothing. Clim is a frequency of observation of
  59. various observations of simultaneous vapour pressures and air temperature,
  60. at some place. It gives a slightly lumpy topleft edge because the cell size
  61. is a bit coarse.
  62.  
  63. Scale names are user choice - make them short because there isn't much room.
  64.  
  65. Choose x- and y- ranges as you feel. The program is supposed to be able to
  66. cope with your choice lying outside or inside the table values in the data
  67. file.
  68.  
  69. S2, S3 -- these  symbols control the fineness of dot plotting.
  70.           - try 0.2, 0.2 as a first try,  then smaller numbers later if the
  71.           result is too coarse. Plotting will then take longer.
  72.  
  73.                                            Harry Trethowen (Nelson)
  74.